package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum PaymentStatus {

    paymentStatus_01(101, "已支付"),
    paymentStatus_02(102, "未支付");

    private Integer paymentStatus;
    private String paymentStatusName;


    public static String getPaymentStatusValue(int index) {
        for (PaymentStatus value : PaymentStatus.values()) {
            if (value.getPaymentStatus() == index) {
                return value.getPaymentStatusName();
            }
        }
        return null;
    }
}
